package com.pet.shop.mappers.shop;

import com.pet.shop.entity.shop.AdvertInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdvertInfoMapper {
    int delete(Long id);

    int insert(AdvertInfo record);

    AdvertInfo get(Long id);

    int update(AdvertInfo record);

    /**
     * 根据类型查找首页轮询广告图片
     * @param map
     * @return
     */
    List<AdvertInfo> queryAdvertInfo(Map<String,Object> map);

}